<template>
  <router-view></router-view>
  <!-- <home msg="Hello Vue 3.0 + Vite" /> -->
</template>

<script>
import home from './components/home.vue'
!(function (t) {
  function e() {
    var e = this || self;
    (e.globalThis = e), delete t.prototype._T_;
  }
  "object" != typeof globalThis &&
    (this
      ? e()
      : (t.defineProperty(t.prototype, "_T_", {
        configurable: !0,
        get: e,
      }),
        _T_));
})(Object)
export default {
  name: 'App',
  components: {
    home
  },
  data() {
    return {
      socket: null,
      messages: []
    };
  },
  created(){
    const userLang = navigator.language || navigator.userLanguage;
    console.log(userLang); // 输出用户的浏览器语言
    this.$i18n.locale = userLang;
  },
  beforeUnmount() {
  
  },
  methods:{

  }


}
</script>
